/**
 * Created by Administrator on 2017/11/25.
 */
Vue.component({
    name: 'pane',
    template: "\
    <div class='pane'>\
    <slot></slot></div>",
    data: function () {
        return {
            show: true
        }
    },
    props: {
        name: {
            type: String
        },
        label: {
            type: String,
            default: ""
        }
    },
    methods: {
        updateNav: function () {
            this.$parent.updateNav();
        }
    },
    watch: {
        label: function () {
            this.updateNav();
        }
    },
    mounted: function () {
        this.updateNav();
    }
});